import { playMode } from 'common/js/config'
import { loadSearch, loadPlayHistory, loadFavoriteList } from 'common/js/cache'

const state = {
    singer: {},
    playing: false,
    fullScreen: false,
    playList: [],
    sequenceList: [],
    mode: playMode.sequence,
    currentIndex: -1,
    disc: {},
    topList: {},
    toastMsg: '',
    menuSong: {},
    searchHistory: loadSearch(),
    showTab: true,
    playHistory: loadPlayHistory(),
    favoriteList: loadFavoriteList(),
    confirmOption: null
}

export default state
